package com.carleasoft.mps.adu.business.org.bean.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 组织表
 * </p>
 *
 * @author ztm
 * @since 2021-09-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("m_authority_organization")
@ApiModel(value="Organization对象", description="组织表")
public class OrgEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "组织机构id")
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "分类编码")
    @TableField(value = "ORG_TYPE_CODE")
    private String orgTypeCode;

    @ApiModelProperty(value = "组织编码")
    @TableField("ORGANIZATION_CODE")
    private String organizationCode;

    @ApiModelProperty(value = "组织实际编号")
    @TableField("ORGANIZATION_NUMBER")
    private String organizationNumber;

    @ApiModelProperty(value = "组织机构名称")
    @TableField("ORGANIZATION_NAME")
    private String organizationName;

    @ApiModelProperty(value = "1-启用,2-停用")
    @TableField("ORGANIZATION_STATUS")
    private Integer organizationStatus;

    /**
     * 备注
     */
    @TableField(value="REMARK")
    private String remark;

    @TableField(value = "CREATE_PERSON_CODE",fill = FieldFill.INSERT)
    private String createPersonCode;

    @TableField(value = "CREATE_PERSON_NAME",fill = FieldFill.INSERT)
    private String createPersonName;

    @TableField(value = "CREATE_TIME",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "UPDATE_PERSON_CODE",fill = FieldFill.UPDATE)
    private String updatePersonCode;

    @TableField(value = "UPDATE_PERSON_NAME",fill = FieldFill.UPDATE)
    private String updatePersonName;

    @TableField(value = "UPDATE_TIME",fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;
    /**
     * 排序值
     */
    @TableField(value = "SORT")
    private Integer sort;
    /**
     * 排序权重
     */
    @TableField(value = "SORT_DATE")
    private Long sortDate;


}
